package cn.thornbird.orgsync.exception;

import org.springframework.http.HttpStatus;

public class BadRequestException extends HttpException {

    public static final String ALREADY_IN_USE = "already in use";

    private static final long serialVersionUID = 7987265981071815757L;

    public BadRequestException() {
        super(HttpStatus.BAD_REQUEST.getReasonPhrase());
        statusCode = HttpStatus.BAD_REQUEST.value();
    }

    public BadRequestException(String message) {
        super(message);
        statusCode = HttpStatus.BAD_REQUEST.value();
    }

}
